package stat;

public class LogReaderLine {
	private long timestamp;
	private String peer; 
	private int piece; 
	private float percentageDone;
	
	public LogReaderLine(long timestamp, String peer, int piece, float percentageDone) {
		this.timestamp = timestamp;
		this.peer = peer;
		this.piece = piece;
		this.percentageDone = percentageDone;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	@Override
	public String toString() {
		return "LogReaderLine [peer=" + peer + ", percentageDone="
				+ percentageDone + ", piece=" + piece + ", timestamp="
				+ timestamp + "]";
	}

	public String getPeer() {
		return peer;
	}

	public void setPeer(String peer) {
		this.peer = peer;
	}

	public int getPiece() {
		return piece;
	}

	public void setPiece(int piece) {
		this.piece = piece;
	}

	public float getPercentageDone() {
		return percentageDone;
	}

	public void setPercentageDone(float percentageDone) {
		this.percentageDone = percentageDone;
	}
}
